find the nullity of a matrix